
/*
 * Author : Priyanka & Lin
 * Inspiration : More Unit 
 */

package sg.edu.nus.iss.cerberus.handler;


import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IType;

import sg.edu.nus.iss.cerberus.ui.EditorUI;
import sg.edu.nus.iss.cerberus.wizard.NewTestCaseWizard;


public class CreateTestMethodActionExecutor
{
    private static CreateTestMethodActionExecutor instance;

    private final EditorUI editorUI;
    //private final Preferences preferences;

    // package-private for testing purposes
    CreateTestMethodActionExecutor(EditorUI editorUI)
    {
        this.editorUI = editorUI;
      //  this.preferences = preferences;
    }

    private CreateTestMethodActionExecutor()
    {
        this(new EditorUI());
    }

    public static CreateTestMethodActionExecutor getInstance()
    {
        if(instance == null)
        {
            instance = new CreateTestMethodActionExecutor();
        }
        return instance;
    }
    
    //priyanka & lin
    public void executeCreateTestMethodAction(ICompilationUnit compilationUnit)
    {
    	IType testcaseToJump = new NewTestCaseWizard(compilationUnit.findPrimaryType()).open(); 
    }

}


